package com.demo;

/**
 * Created by IntelliJ IDEA.
 * User: bj910
 * Date:2023-05-25
 * Time: 14:06
 * To change this template use File | Settings | File Templates.
 */
public class Node {
    private Object content;
    private Node next;

    public Node(Object content, Node next) {
        this.content = content;
        this.next = next;
    }

    public static void main(String[] args) {
        Node header = new Node(new Object(),null);
        header.next = new Node(new Object(),null);
        //插入链表的头部
        new Node(new Object(),header);
    }
}
